import { DotMatrix } from 'leafer-x-dot-matrix'
export class Matrix {
    static name = 'Matrix'
    constructor(app, options) {
        this.app = app
        this.matrix = null
        this.options = options
    }
    init() {
        if (!this.options.matrix) return
        this.matrix = new DotMatrix(this.app)
        this.matrix.enableDotMatrix(true)
        return this
    }
    Cancel() {
        if (this.matrix) return this.matrix.enableDotMatrix(false)
    }
    render() {
        this.matrix.renderDotMatrix()
    }

}